<script setup>
import { ref, computed } from 'vue'
const score = ref([98, 69, 78, 89, 100, 59, 45, 88, 32, 97, 25, 93, 16, 99, 8])
const goodScore = computed(() => {
  console.log("执行了")
  return score.value.filter(item => item >= 90)
})
const badScore = computed(() => {
  console.log("执行了")
  return score.value.filter(item => item < 60)
})
</script>

<template>
  <div>成绩数组：{{ score }}</div>
  <div>优秀成绩：{{ goodScore }}</div>
  <div>糟糕成绩：{{ badScore }}</div>
</template>

<style scoped></style>
